package com.access.boot.autoconfigure.apisdk.util;

import org.springframework.core.DefaultParameterNameDiscoverer;

import java.lang.reflect.Method;

/**
 * @author Yangzhen
 * @date 2023/1/10 18:23
 * @since 1.0.0
 */
public class MethodParameterNameDiscoverer {
    public static final DefaultParameterNameDiscoverer defaultParameterNameDiscoverer = new DefaultParameterNameDiscoverer();

    public static String[] getMethodParametersName(Method method) {
        String[] parameterNames = defaultParameterNameDiscoverer.getParameterNames(method);
        return parameterNames;
    }
}
